import request from '@/utils/request';

/**
 * 执行登录，获取token
 * @param {*} params 
 * @returns {Promise<any>}
 */
export async function fakeAccountLogin(params) {
  return request('/auth/login', {
    method: 'POST',
    data: params,
  });
}


/**
 * 退出登录
 * @returns {Promise<any>}
 */
export async function logout() {
  return request.post('/auth/logout')
}

